package com.cloud.system.project.model.dto;

import com.cloud.common.core.model.entity.TreeNode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 部门树DTO
 * </p>
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DeptTreeDTO extends TreeNode {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门名称")
    private String name;
    @ApiModelProperty(value = "部门编码，同级部门不可重复")
    private String code;
    @ApiModelProperty(value = "负责人")
    private String leader;
    @ApiModelProperty(value = "联系电话")
    private String phone;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "排序")
    private Integer orderNum;
    @ApiModelProperty(value = "状态 0：正常 1：禁用")
    private Integer status;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
